from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    path('', views.IndexView.as_view()),
    path('category/<int:cid>/', views.IndexView.as_view()),
    path('category/<int:cid>/page/<int:pageno>/', views.IndexView.as_view()),
    path('goodsdetails/<gid>/', views.DetailView.as_view()),
]+static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)